#ifndef _NumberText_H_
#define _NumberText_H_

#include <d3dx9.h>

struct TEXTVERTEX
{
	D3DXVECTOR3 pos;
	D3DXVECTOR2 uv;
};

struct TEXTVERTEXRHW
{
	D3DXVECTOR4 pos;
	D3DXVECTOR2 uv;
};

class NumberText
{
public:

	NumberText();
	~NumberText();

	bool Create( IDirect3DDevice9 *pkDevice, D3DXVECTOR3 Pos, int Number, int Type );
	void SetSize( int Left, int Top, int Right, int Bottom );
	void Update( unsigned int dt );
	void Render();
	void Release();
	void ChangeTexcell( int Count );

	bool GetDelete() { return m_bdDelete; }
protected:

	void MakeBuffer();
	void InitVB();
	void InitVBRHW();
	// void Texture
	
	IDirect3DDevice9		*m_pkDevice;
	IDirect3DVertexBuffer9	*m_pkVB;


	D3DXMATRIX m_matworld;
	DWORD m_dFVF;
	int m_iADDTime;
	int m_iCnt;
	int m_iUpdateTime;
	float m_fx1;
	float m_fx2;
	int m_iTextType;
	bool m_bdDelete;

};






#endif // _NumberText_H_